from models import db, BaseModel


class Role(BaseModel):
    """
    角色模型
    """
    __tablename__ = "sys_role"
    __table_args__ = ({"comment": "角色"})
    appCode = db.Column(db.String, name="app_code", unique=False, nullable=True, comment="应用编码")
    name = db.Column(db.String, name="name", unique=False, nullable=True, comment="角色名称")
    code = db.Column(db.String, name="code", unique=False, nullable=True, comment="唯一编码")
    roleType = db.Column(db.Integer, name="role_type", unique=False, nullable=True, comment="角色类型<sys_role_type>")
    enabled = db.Column(db.Integer, name="enabled", unique=False, nullable=True, comment="是否启用")
    remark = db.Column(db.String, name="remark", unique=False, nullable=True, comment="备注")